﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TextToSpeechEngine
{
    class WordRepresentationDatabase
    {

        List<WordRepresentation> wordRepresentations;

        //Filformat:
        //string int[]
        //Word PhonemeIDList
        //Cat 23 1 44 
        void LoadFromFile(string fileName)
        {
            /*
            //Läs från fil, rad för rad.
            //Initiera filvariabel?
            string[] lines = File.ReadAllLines(fileName);
            foreach (string line in lines)
            {
                if (line.Length > 0)
                {
                    string[] entries = line.Split(' ');
                    string word = entries[0];
                    WordRepresentation newRepresentation.Word.set(word);
                    List<int> phonomeIDs;
                    for (int iEntryNr = 1; iEntryNr < entries.Length(); iEntryNr++)
                    {
                        phonomeIDs.Add(entries[iEntryNr]);
                    }
                    newRepresentation.PhonemeIDs.set(phonemeIDs);

                    wordRepresentations.Add(newRepresentation);
                }
            }
            */
        }
    }
}